echo killing java and python processes
pkill -9 java
pkill -9 python

PY_DIR=/home/bh/python/bin
export JAVA_OPTS="-Xmx768m  -DGEOSERVER_DATA_DIR=/home/bh/bikehere/geoserver/data"

echo starting tomcat
cd /home/bh/tomcat
bin/startup.sh

echo starting cherrypy
cd /home/bh/bikehere/py
nohup $PY_DIR/python -m vote.resources > server.log 2>&1  &
